#include "stdafx.h"
#include "auto_gen.h"
int** auto_gen(int size_A)
{
	int** A;
	srand(unsigned(time(NULL)));
	A = new int*[size_A];
	for (int i = 0; i < size_A; i++)
	{
		A[i] = new int[size_A];
		for (int j = 0; j < size_A; j++)
		{
			A[i][j] = rand() % 19 + 1;
		}
	}
	return A;
}

int** auto_gen(int size_B1, int size_B2)
{
	int** A;
	srand(unsigned(time(NULL)));
	A = new int*[size_B1];
	for (int i = 0; i < size_B1; i++)
	{
		A[i] = new int[size_B2];
		for (int j = 0; j < size_B2; j++)
		{
			A[i][j] = rand() % 19 + 1;
		}
	}
	return A;
}